projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb6526b
)
(dnd-get-local-file-name): Decode both upper and lower
author
Jason Rumney
<jasonr@gnu.org>
Wed, 11 Apr 2007 23:42:03 +0000
(23:42 +0000)
committer
Jason Rumney
<jasonr@gnu.org>
Wed, 11 Apr 2007 23:42:03 +0000
(23:42 +0000)
case hex. Do not try to decode non-hex letters.
lisp/dnd.el
patch
|
blob
|
history
diff --git
a/lisp/dnd.el
b/lisp/dnd.el
index 2b523476a4f071484436bdfcb1912cac9faa430d..df081539cf0f0072f19a671a3ae96316677062e7 100644
(file)
--- a/
lisp/dnd.el
+++ b/
lisp/dnd.el
@@
-146,7
+146,7
@@
Return nil if URI is not a local file."
(substring uri (match-end 0))))))
(when (and f must-exist)
(setq f (replace-regexp-in-string
- "%[A-
Z0-9][A-Z
0-9]"
+ "%[A-
Fa-f0-9][A-Fa-f
0-9]"
(lambda (arg)
(format "%c" (string-to-number (substring arg 1) 16)))
f nil t))